package com.sxj.corejava.code07_面向对象.继承;

/**
 * @author 石小俊
 * @date 2025年07月21日 9:44
 */
public class Test01 {

    public static void main(String[] args) {
        Man man = new Man();
        man.setName("admin");
        man.setAge(20);
        man.setGender("男");
        man.setSalary(8000);
        man.show();
        man.work();
        System.out.println("***************************************");

        WoMan woMan = new WoMan();
        woMan.setName("lucy");
        woMan.setAge(18);
        woMan.setGender("女");
        woMan.setAppearance(90);
        woMan.show();
        woMan.shopping();

        System.out.println("***************************************");
        A a = new A();
        System.out.println(a.toString());
        System.out.println(a.hashCode());
        System.out.println(a.getClass());
    }

}

class A {

}